<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
	<meta charset="utf-8">
	<title>大图信息添加</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="/layui/css/layui.css" media="all" />
    <script type="text/javascript" src="/layui/layui.js"></script>
</head>
<body class="childrenBody">
	<form class="layui-form" style="width:80%;">
        <input type="hidden" class="categoryId">
		<div class="layui-form-item">
			<label class="layui-form-label">信息标题</label>
			<div class="layui-input-block">
				<input type="text" name="name"  class="layui-input name" lay-verify="required" placeholder="信息标题">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">排序</label>
			<div class="layui-input-block">
				<input type="number" name="sort"  class="layui-input sort" lay-verify="required" placeholder="排序">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">链接地址</label>
			<div class="layui-input-block">
				<input type="text" name="linkUrl"  class="layui-input linkUrl" placeholder="点击跳转链接地址">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">是否推荐</label>
			<div class="layui-input-inline">
				<input type="radio" name="isRecommend" value="0" title="推荐" >
				<input type="radio" name="isRecommend" value="1" title="不推荐" checked>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">大图分类</label>
			<div class="layui-input-inline categoryId" style="width:200px">
				<select id="categoryId" name="categoryId" lay-verify="required">
					<option value="">请选择一个类别</option>
				</select>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">展示图片</label>
			<div class="layui-upload-drag layui-input-inline" id="upload">
				<i class="layui-icon"></i>
				<p>点击上传，或将文件拖拽到此处</p>
			</div>
			<input type="hidden" name="imgUrl" id="imgUrl">
			<div class="layui-input-inline" id="imgBox">

			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">描述</label>
			<div class="layui-input-block">
				<textarea name="description" placeholder="请输入描述" class="layui-textarea description"></textarea>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="addLinks">立即提交</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		    </div>
		</div>
	</form>
	<script type="text/javascript" src="/js/page/imageAdd.js"></script>
</body>
</html>